package com.ly.quickdev.library.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * 可以嵌套的listview,尚未完成
 * @author 李洋
 *
 */
public class NestedListView extends ListView {

	private OnScrollChangedListener mOnScrollChangedListener;

	public interface OnScrollChangedListener {
		void onScrollChanged(int l, int t, int oldl, int oldt);
	}

	public NestedListView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		// TODO Auto-generated constructor stub
	}

	public NestedListView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	public NestedListView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void onScrollChanged(int l, int t, int oldl, int oldt) {
		// TODO Auto-generated method stub
		super.onScrollChanged(l, t, oldl, oldt);
		mOnScrollChangedListener.onScrollChanged(l, t, oldl, oldt);
	}
}
